<!DOCTYPE html>
<html>
<#include "../../include/PC_Header.html"> 
<body>
<#assign nid="my_account">  
<#assign flag="creditApply"> 
<#include "../../include/header.html">
	<!--#container-->
	<#include "../../include/member_borrow_header.html">
<div id="container">
	<div class="usermain clearfix">
		<div class="user_left">
			<#include "../account_menu.html">
		</div>
		<div class="user_right">
			<h2 class="user_title">信用额度</h2>
			<div class="amountApply tab_change">
				<ul class="title_list clearfix">
					<li class="hover"><h2 class="list_btn">申请记录</h2></li>
					<li><h2 class="list_btn" id="amountApply">申请额度</h2></li>
				</ul>
				
				
				<!-- S 申请记录 -->
				<div class="list_div" id="amountApplyRecordDiv">
					<ul class="member_search">
						<li id="shortTime">
							日期范围
							<span id="timeStatus">
								<a href="javascript:;" class="current" data-val="9">全部</a>
								<a href="javascript:;" data-val="7">最近7天</a>
								<a href="javascript:;" data-val="1">1个月</a>
								<a href="javascript:;" data-val="2">2个月</a>
								<a href="javascript:;" data-val="3">3个月</a>
								<em>具体日期&gt;&gt;</em>	
							</span>	
						</li>
						<li id="fullTime" style="display:none;">
							起止日期
							<input type="text" class="dateInput" name="startTime" id="startTime" value="${startTime?default('')}"/> - 
							<input type="text" class="dateInput" name="endTime" id="endTime" value="${endTime?default('')}"/>
							<input id="searchBtn" value="搜索" type="button" class="searchBtn">
							<em>&lt;&lt;日期范围</em>	
						</li>
						<li>
							申请状态
							<span id="status">
							<a href="javascript:;" class="current" data-val="99">全部</a>
							<a href="javascript:;" data-val="1">通过</a>
							<a href="javascript:;" data-val="-1">未通过</a>
							<a href="javascript:;" data-val="2">审核中</a>
							</span>
						</li>
					</ul>
					<div class="user_right_main">
						<table class="table_content">
							<thead>
								<tr>
									<td class="time">时间</td>
									<td>申请信用额度</td>
									<td>现有额度</td>
									<td>审核状态</td>
									<td>备注</td>
								</tr>
							</thead>
							<tbody id="member_table"></tbody>
						</table>
						<div id="kkpagerAmountRecordApply" class="kkpager"></div>
					</div>
				</div>
				<!-- E 申请记录 -->
				<!-- S 申请信用额度 -->
				<div class="list_div" id="amountApplyDiv" style="display:none;">
					<#if applyIngCount?exists&&applyIngCount&gt;0>
		            	<div class="small_add"><p>申请已提交，等待系统审核</p></div>
					<#else>
					<!-- S 申请信用额度 -->
					<form action="${webroot}/member/borrow/doCreditApply.html"  method="post" id="addAmountApply">
						<#if applyIngCount?exists&&applyIngCount&gt;0>
							<div class="small_add"><p>申请已提交，等待系统审核</p></div>
						<#else>
						<div class="formitm">
			                <label class="lab">申请人</label>
			                <div class="ipt"><span class="userName">${session_user.userName}</span></div>
			            </div>
			            <div class="formitm">
			                <label class="lab">申请金额</label>
			                <div class="ipt">
			                	<input type="text" id="amount" name="amount" maxlength="5" class="applyingInput" onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" /><span class="yuan">元</span><span class="tips">（每次最多可以申请10000元）</span><em></em>
							</div>
			            </div>
			            <div class="formitm">
			                <label class="lab">详情说明</label>
			                <div class="ipt">
			                	<textarea name="content" id="bidTit" class="content" maxlength="100"></textarea>
			                	<em></em>
							</div>
			            </div>
			            <div class="formitm">
			                <label class="lab">其他说明</label>
			                <div class="ipt">
			                	<textarea name="remark" class="content" maxlength="100"></textarea>
							</div>
			            </div>
			            <div class="formitm">
			                <label class="lab"></label>
			                <div class="ipt">
			                	<input type="submit" name="name" class="addBtn" value="确认提交" size="30" />
							</div>
			            </div>
						<p class="errorMsg"></p>
						</#if>
					</form>
					<!-- E 申请信用额度 -->
					</#if>
				
				</div>
				<!-- E 申请信用额度 -->
			</div>
        </div>
	</div>
</div>	
<#include "../../include/PC_Footer_Additional_JS.html">
<script>
	seajs.use('member/borrow_amountApply');
	seajs.use('member_borrow/usercertification_addApply');
</script>
<script src="/plugins/laydate-v1.1/laydate.js"></script>
<script src="/themes/theme_default/media/js/date.js"></script>
<#include "../../include/footer.html"> 
